﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using CarBooker.Infrastructure.RepositoryFramework;
using CarBooker.Infrastructure.Repository;

namespace CarBooker.Models
{
    public static class SecondCarService
    {
        public static IList<SecondCar> GetAllCars() 
        {
            ISecondCarRepository repository =
                (ISecondCarRepository)RepositoryFactory.GetRepository<ISecondCarRepository, SecondCar>();
            return repository.FindAll();
        }
    }
}
